﻿using Ducu.GLB.Global;
using Ducu.SRV.ServiceInteface;
using Ducu.SRV.ViewModel.User;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ducu.SRV.UIDevService
{
    public class UserService : IUserService
    {
        public ViewModel.User.ProfileModel Get(int id)
        {
            throw new NotImplementedException();
        }

        public _CreditModel GetCredit(int userId)
        {
            throw new NotImplementedException();
        }

        public string GetDisplayName(int userId)
        {
            throw new NotImplementedException();
        }


        public CreditsModel GetCreditsList(int userId, GLB.Global.Pager pager)
        {
            CreditsModel model = new CreditsModel
            {
                Items = new List<CreditItemModel>
                {
                    new CreditItemModel
                    {
                         CreateTime = new DateTime(2016,5,9,12,12,11),
                         Status = Status.Accepted
                    },
                    new CreditItemModel
                    {
                         CreateTime = new DateTime(2016,5,8,11,12,11),
                         Status = Status.Accepted
                    },                    
                    new CreditItemModel
                    {
                         CreateTime = new DateTime(2016,5,8,2,40,11),
                         Status = Status.WaitAccept
                    },                    
                    new CreditItemModel
                    {
                         CreateTime = new DateTime(2016,5,7,12,12,11),
                         Status = Status.Refused
                    },
                }
            };

            return model;
        }

        public int GetCreditsCount(int userId)
        {
            return 28;
        }
    }
}
